package example.avro

object CreatingUser {
  def main(args: Array[String]): Unit = {
    val user1 = new User()
    user1.setName("Hunter")
    user1.setFavoriteNumber(256)


    val user2 = new User("Mary", 7, "red")

    val user3 = User.newBuilder()
      .setName("Tony")
      .setFavoriteNumber(null)
      .setFavoriteColor(null)
      .build()


    println(user1)
    println(user2)
    println(user3)
  }
}
